function dedup(arr) {
    let obj = {}
    arr = arr.reduce((pre, el) => {
        if (!obj[el.id] || !obj[el.movieId]) {
            obj[el.id] = true
            obj[el.movieId] = true
            pre.push(el)
        }
        return pre
    }, [])
    return arr
}
export default dedup